package com.jgame.secondarymarket.domain.product.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jgame.secondarymarket.infrastructure.common.model.entity.BaseEntity;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @title: ProductProperties
 * @Author Wangsj
 * @Date: 2021/7/22
 */
@Data
@TableName("product_properties")
public class ProductProperties extends BaseEntity {

    @NotNull(message = "商品属性必须归属于指定商品")
    @TableField(value = "product_id")
    private Long productId;

    @NotNull(message = "商品属性名称不能为空")
    private String tage;

    @NotNull(message = "商品属性值不能为空")
    private String value;
}
